'''
Created on 2024年7月22日

@author: Administrator
'''
from pathlib import Path

path = Path('pi_digits.txt')
contents = path.read_text().rstrip()
print(contents)
lines = contents.splitlines()
pi_string = ''
for line in lines:
    pi_string += line.lstrip()
    print(line)

print(pi_string)
print(len(pi_string))

